<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Main extends CI_Controller {

	
	function __construct()
	{
		parent::__construct();
	
		$this->load->library('session');
			
	}
##################################################################################################
	function index(){
		
		$this->session->sess_destroy();
		
		$this->load->view('login_terminal.php');
	}
	
##################################################################################################
	function signup(){
	
		$this->load->view('signup_terminal.php');
	}	

##################################################################################################
	function home(){
		//updating the system logger
		$this->load->library('FootPrintLog');
		$userid =  $this->session->userdata('user_id');
		$activity =  'accessed to home panel';
		$access_id =  $this->session->userdata('access_id');
		$result = $this->footprintlog->footPrintLogger($userid,$access_id,$activity);
		
		if($result == true){
			$this->load->view('home');
		}
		
	}
	
}
